package com.tang.usercenter.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * 角色表(Role)实体类
 *
 * @author tangshencai
 * @since 2024-05-20 08:39:35
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("role")
@ApiModel(value = "Role", description = "角色表")
public class RoleEntity implements Serializable {
    private static final long serialVersionUID = 490222592309321498L;
    
    /**
     * 主键
     */     
	@ApiModelProperty(value = "主键")
    @TableField("id")
    private Long id;
    
    /**
     * 角色名称
     */     
	@ApiModelProperty(value = "角色名称")
    @TableField("role_name")
    private String roleName;
    
    /**
     * 角色编码
     */     
	@ApiModelProperty(value = "角色编码")
    @TableField("role_code")
    private String roleCode;
    
    /**
     * 是否有效
     */     
	@ApiModelProperty(value = "是否有效")
    @TableField("enable_flag")
    private Integer enableFlag;
}
